package com.school.mapper;

import com.school.entity.IndexConfig;
import com.school.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IndexConfigMapper {
    int getTotalIndexConfigCount(PageQueryUtil pageQueryUtil);

    List<IndexConfig> findIndexConfigList(PageQueryUtil pageQueryUtil);

    IndexConfig selectByPrimaryKey(Long configId);

    int updateByPrimaryKeySelective(IndexConfig indexConfig);

    IndexConfig selectByGoodsIdAndType(@Param("goodsId") Long goodsId,@Param("configType") Byte configType);

    int insertSelective(IndexConfig indexConfig);

    List<IndexConfig> findIndexCpnfigByTypeAndNum(@Param("configType") int configType, @Param("number") int number);
}
